using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application;

/// <summary>
/// 业主表
/// </summary>
[SugarTable("owner", "业主表")]
[SysTable]
public class Owner : EntityBase, ITenantIdFilter
{
	public virtual long? TenantId { get; set; }

	/// <summary>
	/// 名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 联系方式即账号
	/// </summary>
	public string PhoneNumber { get; set; }

	/// <summary>
	/// 密码
	/// </summary>
	public string Password { get; set; }

	/// <summary>
	/// 微信公众号openid
	/// </summary>
	public string? OpenId { get; set; }

	/// <summary>
	/// 微信公众号appid
	/// </summary>
	public string? AppId { get; set; }

	/// <summary>
	/// 备注
	/// </summary>
	public string? Remark { get; set; }

	/// <summary>
	/// 账号是否启用，0否，1是
	/// </summary>
	[SugarColumn(DefaultValue = "1")]
	public int IsEnable { get; set; }

	/// <summary>
	/// 邮箱地址
	/// </summary>
	public string? Email { get; set; }
}
